package com.plian.system.service.im;

import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.alibaba.excel.write.metadata.fill.FillConfig;
import com.plian.system.entity.im.FixedInvestmentPlan;
import com.plian.system.mybatis.base.BaseService;

import java.util.List;

/**
 * 服务类
 *
 * @author
 * @since 2019-09-27
 */
public interface IFixedInvestmentPlanService extends BaseService<FixedInvestmentPlan> {

    /**
     * 年度新增股权投资计划表sheet页 数据写入
     * @param fixedInvestmentPlans
     * @param excelWriter
     * @param writeSheet
     * @param fillConfig
     */
    void write(List<FixedInvestmentPlan> fixedInvestmentPlans, ExcelWriter excelWriter, WriteSheet writeSheet, FillConfig fillConfig);


    /**
     * 根据主表id删除
     * @param baseInvestmentPlanId
     * @return
     */
    boolean deleteByBaseId(Long baseInvestmentPlanId);

    /**
     * 根据主表删除
     * @param ids
     * @return
     */
    boolean deleteByParentId(List<Long> ids);

    /**
     * 数据校验
     * @param fixedInvestmentPlanList
     * @return
     */
    String checkMsg(List<FixedInvestmentPlan> fixedInvestmentPlanList,int year);
}
